package trash.Tmp;


public class SuperConstructorTest
{
    public static void main(String[] args)
    {
        new GrandChild();
    }

    static class Parent
    {
        public Parent(int x)
        {
            System.out.println("Parent " + x);
        }
    }

    static class Child extends Parent
    {
        public Child()
        {
            //!!! ERROR  super() - parent constructor call must be first method!!!  System.out.println("12345");
            //!!! super(); OR NONE - Error, can't found ctor without params

            super(9000);
            System.out.println("Child");
        }
    }

    static class GrandChild extends Child
    {
        public GrandChild()
        {
            System.out.println("GrandChild");
        }
    }
}

